package gui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Toolkit;

import algo.Algo;

public class FenetreFourmi extends Frame {

	private static final long serialVersionUID = 1L;
	final static int HAUTEUR = 680;
	final static int LARGEUR = 900;

	public FenetreFourmi(Algo algo) {

		this.setTitle("Fourmis");
		this.setSize(LARGEUR, HAUTEUR);
		this.setBackground(Color.LIGHT_GRAY);

		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		this.setLocation((screenSize.width - this.getWidth()) / 2,
				(screenSize.height - this.getHeight()) / 2);

		PanelFourmi panel = new PanelFourmi(this, algo);
		this.add(panel);
		this.addWindowListener(new FermerFenetreEcouteur(this));
		this.setVisible(true);
	}
}
